home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / maksiu / lists / amoslist-0996.lzh / AMOSLIST / 000042_amos-request@svcs1.digex.net_Tue Sep 24 07:59:27 1996.msg < prev    next >
Internet Message Format  |  1996-10-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail3.access.digex.net (8.7.6/8.7.3) with ESMTP id HAA21619 for <mcox@access.digex.net>; Tue, 24 Sep 1996 07:59:25 -0400 (EDT)
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.7.5/8.7.3) id QAA21591 for amos-out; Wed, 18 Sep 1996 16:14:03 -0400 (EDT)
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.7.5/8.7.3) with ESMTP id QAA21582 for <amos-list@svcs1.digex.net>; Wed, 18 Sep 1996 16:14:02 -0400 (EDT)
  4. Received: from red.paston.co.uk (red.paston.co.uk [194.129.188.3]) by mail1.access.digex.net (8.7.5/8.7.3) with ESMTP id QAA24343 for <amos-list@access.digex.net>; Wed, 18 Sep 1996 16:13:56 -0400 (EDT)
  5. Received: from localhost ([194.129.188.201]) by red.paston.co.uk with SMTP id <22800-4>; Wed, 18 Sep 1996 21:14:19 -0000
  6. Received: by paston.co.uk.uucp (V1.16/Amiga)
  7.     id AA009gs; Wed, 26 Feb 92 08:44:50 GMT
  8. Date: Wed, 26 Feb 92 08:44:50 GMT
  9. Message-Id: <9202260844.AA009gn@paston.co.uk.uucp>
  10. In-Reply-To: <9609171834.AA001fg@mirex.demon.co.uk>
  11.              (from Braneloc@mirex.demon.co.uk)
  12.              (on Tue, 17 Sep 96 18:34:19)
  13. Lines: 35
  14. X-Mailer: ADMail 1.7 Copyright 1995 S.T.Brown
  15. From: bwyatt@paston.co.uk (Ben Wyatt)
  16. To: Braneloc@mirex.demon.co.uk, amos-list@access.digex.net
  17. Subject: Re: Dividing hex numbers by 2
  18. Status: RO
  19. X-Status: 
  20.  
  21. Greetings Keith, you wrote some text on the subject Re: Dividing hex
  22. numbers by 2, and now I'm going to answer it
  23.  
  24. > > But if the number was, for example, $7B3, it gives a silly answer.
  25. > $7b3    = 1971
  26. > 1971/2    = 985.5  (985 as integer)
  27. > 985    = $3D9
  28. > Amos says: $7b3 / 2 = $3d9
  29. > ...are you SURE about this ??
  30.  
  31. No, this isn't what I want. I admit, I didn't think it through when I said
  32. it gave silly answers - the answers are, of course, completely correct,
  33. but not the answers I want! :) See below for what I want.
  34.  
  35. > > Has anyone got a quick and easy solution to this, without having to read
  36. > > each character and divide it manually?
  37. > Please give lots of examples where it goes wrong, and I'll try and help. 
  38. > Either that, or your copy may need re-installing or something horrible like
  39. > that. 
  40.  
  41. My AMOS works fine for dividing hex numbers, as you describe, but I only
  42. want to divide each digit of the hex number. This is for the screen colours
  43. and I want to calculate the half-brite colour. Colour(>31) doesn't work.
  44.  
  45. Anyway, for this purpose I use extension commands which are able to read
  46. colours 32-63 correctly (ie half the colour of their equivilant).
  47.  
  48. Bye _________________________________
  49.    /                                 \
  50.    > Ben Wyatt - bwyatt@paston.co.uk <
  51.    \_________________________________/ (c)1995 Very Interesting Signatures